Skip to content

Conversation

@sorcererxw
Copy link
Contributor

No description provided.

export interface CustomBlockComponentProps<T extends BlockValueTypeKeys> {
renderComponent: () => JSX.Element | null;
blockMap: BlockMapType;
blockValue: T extends BlockValueType ? BlockValueProp<T> : BaseValueType;
Copy link
Contributor Author

@sorcererxw sorcererxw Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since BlockValueTypeKeys is union of string, but BlockValueType not, T would never match BlockValueTypeKeys & BlockValueType

@tobiaslins tobiaslins merged commit 332ccb6 into splitbee:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants